package com.kkb.kkbcommon.annotation.validation.annotation;

import com.kkb.kkbcommon.annotation.validation.validator.LandlineNumberValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * @Author: 朱明亮
 * @Description: 座机号码校验注解
 * @Data Created in 2021-08-20 14:58:31
 * @Modified by:
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
@Constraint(validatedBy = LandlineNumberValidator.class)
public @interface LandlineNumber {
    String message() default "座机号码校验不通过";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
